package com.ophiux.product.api.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.ophiux.common.core.base.Result;
import com.ophiux.common.core.constant.ServiceNameConstants;

/**
 * @desc:
 * @author: hhl
 * @date：2022/1/5 11:40
 */
@FeignClient(contextId = "procuctFeignApi",value = ServiceNameConstants.PRODUCT_SERVICE)
public interface IProductFeignApi {

    /**
     * 减少库存
     * @return
     */
    @GetMapping("/product/reduceStock")
    public Result reduceStock(@RequestParam("stockNum") Integer stockNum);


}
